package com.cg.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(value = "order-server")
public interface OrderServer {

    @GetMapping("order/generateOrder/{userId}/{orderNum}")
    void generateOrder(@PathVariable("userId") Integer userId, @PathVariable("orderNum") Integer orderNum);

}
